package cn.javabb.phonebook.mapper;

import cn.javabb.phonebook.base.BaseMapper;
import cn.javabb.phonebook.entity.PhoneBook;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @desc:
 * @author: javabb (javabob(a)163.com)
 * @create: 2020/05/03 15:46
 */
@Repository
public interface PhoneBookMapper extends BaseMapper<PhoneBook> {
    @Select("select id,name,image from t_phoneBook where initial=#{initial}")
    List<PhoneBook> loadByInitial(String initial);
}
